﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using nERP.Model.So;
using nERP.Model;
using nERP.Model.Bas;

namespace nERP.ViewModel.So.SaleDetailVMs
{
    public partial class SaleDetailBatchVM : BaseBatchVM<SaleDetail, SaleDetail_BatchEdit>
    {
        public SaleDetailBatchVM()
        {
            ListVM = new SaleDetailListVM();
            LinkedVM = new SaleDetail_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class SaleDetail_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._SaleDetail._Seq")]
        public int? Seq { get; set; }
        [Display(Name = "_Model._SaleDetail._Sale")]
        public string SaleId { get; set; }
        [Display(Name = "_Model._SaleDetail._Goods")]
        public string GoodsId { get; set; }
        [Display(Name = "_Model._SaleDetail._GoodsName")]
        public string GoodsName { get; set; }
        [Display(Name = "_Model._SaleDetail._GoodsSpec")]
        public string GoodsSpec { get; set; }
        [Display(Name = "_Model._SaleDetail._GoodsUnit")]
        public string GoodsUnit { get; set; }
        [Display(Name = "_Model._SaleDetail._SaleNumber")]
        public decimal? SaleNumber { get; set; }
        [Display(Name = "_Model._SaleDetail._UnitPrice")]
        public decimal? UnitPrice { get; set; }
        [Display(Name = "_Model._SaleDetail._TotalPrice")]
        public decimal? TotalPrice { get; set; }
        [Display(Name = "_Model._SaleDetail._TaxRate")]
        public decimal? TaxRate { get; set; }
        [Display(Name = "_Model._SaleDetail._DiscountPrice")]
        public decimal? DiscountPrice { get; set; }
        [Display(Name = "_Model._SaleDetail._TaxUnitPrice")]
        public decimal? TaxUnitPrice { get; set; }
        [Display(Name = "_Model._SaleDetail._TaxPrice")]
        public decimal? TaxPrice { get; set; }
        [Display(Name = "_Model._SaleDetail._TotalTaxPrice")]
        public decimal? TotalTaxPrice { get; set; }
        [Display(Name = "_Model._SaleDetail._Remark")]
        public string Remark { get; set; }
        [Display(Name = "_Model._SaleDetail._Status")]
        public dStatusTypeEnum? Status { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}